﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chaos.messages
{
    class request_model_game : message
    {
        public override void process(context in_context)
        {
            model.game game = System.Windows.Application.Current.FindResource("model_game") as model.game;
            process_model_game message = new process_model_game();
            message.Game = game;
            in_context.Connection.sendmessage(message);
        }

        public override void serialize(stream.stream in_Stream)
        {
            in_Stream.begin("request_model_game")
            .end();
        }
    }
}
